from django.db import models

class User(models.Model):
    uname = models.CharField(max_length=100,unique=True,null=False)
    pwd = models.CharField(max_length=100)

class Type(models.Model):
    tname = models.CharField(max_length=100,null=False)

    class Meta():
        db_table = 'Type'

class Info(models.Model):
    tit = models.CharField(max_length=100,null=False)
    ath = models.CharField(max_length=100,null=False)
    cont = models.CharField(max_length=100,null=False)
    dataa = models.DateField(auto_now_add=True)
    ss = models.BooleanField()
    Type = models.ForeignKey(Type,on_delete=models.CASCADE)


    class Meta():
        db_table = 'Info'